import Vue from "vue";
//导入路由 main.js中
import VueRouter from "vue-router";
import find from '@/view/find.vue'
import my from '@/view/my.vue'
import part from '@/view/friend.vue'
// // 在vue中，使用使用vue的插件，都需要调用Vue.use()
Vue.use(VueRouter)
// //创建路由对象
const router = new VueRouter({
    routes: [
        {
            path: '/find',
            component: find
        },
        {
            path: '/my',
            component: my
        },
        {
            path: '/part',
            component: part
        },
    ]
})
export default router